
<?if(count($news) > 0){?>
  <?php foreach ($news as $key => $value) { ?>
    <?if($value['visibility'] == 'show'){?>
      <div class="row-fluid">
        <div class="span3" style="margin-top:20px;"><img src="/public/img/<?=$value['pict']?>" alt=""></div> 
        <div class="span8">
        <h3><?=htmlspecialchars($value['name'])?></h3>
        <h6 style="color: #999999"><?=$value['date']?></h6>
        <p><?=htmlspecialchars($value['summary_news'])?></p>
        <p><a class="btn" href="/main/show_news?<?=$value['news_id']?>">Просмотр &raquo;</a></p>
        </div>
      </div>
    <?}?>          
  <?}?> 
<?}else{?>
  <div class="row-fluid">
    <b>В данной категории нет новостей</b>
  </div>
<?}?>
  

  